package cn.jingdalei.org.domain;

import cn.jingdalei.basic.domain.BaseDomain;
import lombok.Data;

import java.util.ArrayList;
import java.util.List;

@Data
public class Department extends BaseDomain {
    private String sn;
    private String name;
    private String dirPath;
    // 部门状态
    private Integer state;

    // 关联Employee表
    private Long manager_id;
    // 引用属性
    private Employee manager;

    // 上级部门
    private Long parent_id;
    // 引用属性
    private Department parent;

    // 一对多 关联属性(自关联)
    List<Department> children = new ArrayList<>();
}
